<?php

require_once 'Pipes/ModelList/Grid.php';
require_once 'PipesImpl/ModelList.php';
require_once 'Pipes/Xml/Document.php';
require_once 'Pipes/Xml/Element.php';
require_once 'Pipes/Xml/PipesNsCleaner.php';
require_once 'PipesCore/Helpers/Grid/BodyBuilder.php';
require_once 'PipesCore/Helpers/Grid/ElementParser.php';
require_once 'PipesCore/Helpers/Grid/HeaderBuilder.php';

class PipesCore_Helpers_Grid
{
    private $_grid = null;
    private $_config = null;

    public function __construct(PipesImpl_Config $config) {
        $this->_config = $config;
    }

    public function factory(PipesImpl_ModelList $modelList)
    {
        $grid = new Pipes_ModelList_Grid($this->_config, $modelList);
        return $grid;
    }
   /* 
    public function start()
    {
        $this->outputHeader();
    }
    
    public function stop()
    {
        $this->_grid->setOverride(ob_get_clean());
    }
    
    public function output() {
        echo $this->_grid->generate();
    }*/
}
